//bool, ObjList objs, str OUT reasonText

Hero this;
str cmmd;

this = objs[0].AsHero(); 

if(!.IsValid()) return false;

cmmd = .command;
if(cmmd == "retreat_notai"){
	reasonText = Translate("Hero retreat !");
	return false;
}
if(cmmd == "retreat_bld_notai"){
	reasonText = Translate("Hero retreat !");
	return false;
}
//if(.TimePastLastAttack() < GetConst("HeroTimePastLastAttack")){
	//if(.EnemiesInSight()){ 

if(.HasItem("irage_battle")){
	reasonText = Translate("Hero in battle !");
	return false;
} else if(.HasItem("irage_battle_stand")){
	reasonText = Translate("Hero in battle !");
	return false;
}
return true;
